import React from 'react';
import { connect } from 'dva';
import styles from './Main.css';
import MyHeader from '../../components/layout/MyHeader';
import NavMenu from '../../components/layout/NavMenu';
import MyMenu from '../../components/layout/MyMenu';
import { Layout, Menu, Row, Col } from 'antd';
const { Header, Content, Sider } = Layout;
const { SubMenu } = Menu;
function UserMain({ children, params }) {
  return (
    <Layout className={styles.mainLayout}>
      <MyHeader />
      {children}
    </Layout>
  );
}

function mapStateToProps() {
  return {};
}

export default connect(mapStateToProps)(UserMain);
